<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
>
<head>
    <title>Hello World!</title>
</head>
<body>
<h1 th:inline="text">Hello [[${#httpServletRequest.remoteUser}]]!</h1>

<div th:if="${#httpServletRequest.remoteUser}">
    <form th:action="@{/logout}" method="post">
        <input type="submit" value="Sign Out"/>
    </form>
</div>
<a th:href="@{/login}">login</a>
<a th:href="@{/username}">权限认证</a>
<a th:href="@{/permission}">查看权限</a>
<a th:href="@{/current}">当前用户</a>
<a th:href="@{/admin}">管理员页面</a>

</body>
</html>